#!/bin/bash

# 根据架构选择构建配置
if [ "$TARGET_ARCH" = "loongarch64" ]; then
  # LoongArch 专用构建命令
  ./build.sh --product-name loongarch_pc \
             --target-cpu loongarch64 \
             --gn-args "enable_loongarch=true use_loongarch_toolchain=true"
  
  # 运行 LoongArch 测试套件
  ./test/ci/loongarch/run_ci_tests.sh
else
  # 其他架构的标准构建
  ./build.sh --product-name rk3568 --target-cpu arm64
fi
